<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            border-collapse: collapse;
            text-align: center;
            
        }
        table,
        tr,
        th,
        td{
            border: 1px solid black;
            padding: 10px;
        }
    </style>
</head>
<body>
    <script>
        let price=prompt('请输入商品的价格');
        let num=prompt('请输入商品的数量');
        let address=prompt('请输入商品的地址');
        document.write(`
        <table>
        <caption><h2>订单确认</h2></caption>
        <tr>
                <th>商品名称</th>
                <th>商品价格</th>
                <th>商品数量</th>
                <th>总价</th>
                <th>收获地址</th>
        </tr>
        <tr>
            <td>小米手机青春PLUS</td>
            <td>${price}</td>
            <td>${num}</td>
            <td>${price*num}</td>
            <td>${address}</td>
        </tr>
        </table>
        `);
    </script>
</body>
</html>